Z-Score Financial Market Conditions | JeffreyTimmermansZ-Score Financial Market Conditions
The Z-Score Financial Market Conditions indicator is a cutting-edge tool for measuring financial market stress and relaxation by combining eight critical financial metrics into a single composite Z-score. This dynamic indicator provides traders and analysts with actionable insights into the overall state of the financial markets, enabling informed decision-making across various trading and investment systems.
Purpose of the Indicator
This indicator serves as a comprehensive gauge of financial market conditions, offering a clear visualization of whether the markets are in a state of stress (elevated risks) or relaxation (normalized conditions). The Z-Score Financial Market Conditions tool is particularly effective for:
Macro-Level Risk Assessment: Identifying periods of high market stress or calmness.
Trend Following Systems: Gauging the market's underlying conditions to validate trends.
Mean Reversion Strategies: Using extreme Z-score levels to detect potential reversals.
Portfolio Risk Management: Adjusting asset exposure based on market-wide financial conditions.
This indicator works exclusively on the 1-day timeframe, as it is calibrated to analyze daily changes in the financial metrics that drive market behavior.
The Eight Key Components and Their Importance
The composite Z-score integrates the Z-scores of the following eight financial metrics. These metrics have been selected for their complementary insights into various aspects of financial market conditions:
VIX (S&P 500 Volatility Index)
Reflects implied volatility in the U.S. equity market.
High VIX values indicate increased uncertainty and risk aversion among market participants.
MOVE (US Treasury Bond Volatility Index)
Captures volatility in U.S. Treasury bonds.
Essential for understanding risk in fixed-income markets, which significantly impact broader economic conditions.
ICE BofA High Yield Option Adjusted Spread (BAMLH0A0HYM2)
Measures the risk premium for high-yield corporate bonds.
Rising spreads suggest increased credit risk and potential economic stress.
ICE BofA Corporate Index Option Adjusted Spread (BAMLC0A0CM)
Tracks credit spreads in the investment-grade bond market.
Helps evaluate the health of higher-quality corporate debt, a key indicator of financial stability.
ICE BofA US High Yield Index Spread (BAMLH0A0HYM2)
Focuses on high-yield U.S. corporate bonds.
Provides localized insights into U.S. credit conditions and risk levels.
CDS (Credit Default Swap Spreads)
Measures the cost of insuring against bond defaults.
Rising CDS spreads signal growing concern over creditworthiness, often a leading indicator of financial stress.
Global Bond Spread (AGG)
Represents global fixed-income spreads.
Offers a broader perspective on international financial conditions beyond the U.S. market.
TED Spread (Treasury-EuroDollar Spread)
The difference between interbank lending rates and short-term U.S. Treasury yields.
Widely regarded as an indicator of systemic risk in the banking sector.
Features and Improvements
This script builds upon the original concept by introducing advanced features to enhance its precision and usability:
Lookback Period Adjustment
A customizable lookback period for Z-score calculations (default: 160 days).
Allows for greater flexibility in adapting to different market conditions.
Moving Average (MA) Smoothing
Optional smoothing of Z-scores using an exponential moving average (EMA) for enhanced clarity.
Default smoothing length: 8 days.
Individual Component Visibility
Plots for individual Z-scores can be enabled or disabled to focus on specific metrics.
Dynamic Background Coloring
Visual cues to indicate bullish (green) or bearish (red) financial conditions based on the composite Z-score.
Custom Inputs
Toggle on/off for each financial metric to tailor the indicator to specific use cases.
Customizable parameters for smoothing and moving averages.
Applications
This indicator is versatile and can be effectively used in various trading systems and strategies:
Long-Term Investment Decision-Making: Assess macroeconomic trends for portfolio rebalancing.
Systematic Trading: Incorporate market conditions into algorithmic models to enhance robustness.
Volatility-Based Strategies: Use Z-score fluctuations to anticipate periods of market turbulence or calm.
Credits
This indicator was inspired by and builds upon the work of TomasOnMarkets . While incorporating significant enhancements, it acknowledges the foundational concepts provided by this original source. Thank you for sharing your input on this important indicator. We are honored to use it and to further improve upon it.
-Jeffrey
Buscar en scripts para "Implied volatility"
MOVE/VXTLT CorrelationMany know of the VIX for equity trading. Yet, many are unaware that there is the same kind of volatility measure for trading bonds, called the MOVE Index.
"The Merrill Lynch Option Volatility Estimate (MOVE) Index is a yield curve weighted index of the normalized implied volatility on 1-month Treasury options which are weighted on the 2, 5, 10, and 30 year contracts."
With this script one can see the the correlation and divergences between bonds and its volatility measure to make educated decisions in trading or hedging.
The idea of this script comes from NicTheMajestic.
σ-Based SL/TP (Long & Short). Statistical Volatility (Quant Upgrade of ATR)
Instead of ATR’s simple moving average, use standard deviation of returns (σ), realized volatility, or implied volatility (options data).
SL = kσ, TP = 2kσ (customizable).
Why better than ATR: more precise reflection of actual distribution tails, not just candle ranges.
Goldman Sachs Risk Appetite ProxyRisk appetite indicators serve as barometers of market psychology, measuring investors' collective willingness to engage in risk-taking behavior. According to Mosley & Singer (2008), "cross-asset risk sentiment indicators provide valuable leading signals for market direction by capturing the underlying psychological state of market participants before it fully manifests in price action."
The GSRAI methodology aligns with modern portfolio theory, which emphasizes the importance of cross-asset correlations during different market regimes. As noted by Ang & Bekaert (2002), "asset correlations tend to increase during market stress, exhibiting asymmetric patterns that can be captured through multi-asset sentiment indicators."
Implementation Methodology
Component Selection
Our implementation follows the core framework outlined by Goldman Sachs research, focusing on four key components:
Credit Spreads (High Yield Credit Spread)
As noted by Duca et al. (2016), "credit spreads provide a market-based assessment of default risk and function as an effective barometer of economic uncertainty." Higher spreads generally indicate deteriorating risk appetite.
Volatility Measures (VIX)
Baker & Wurgler (2006) established that "implied volatility serves as a direct measure of market fear and uncertainty." The VIX, often called the "fear gauge," maintains an inverse relationship with risk appetite.
Equity/Bond Performance Ratio (SPY/IEF)
According to Connolly et al. (2005), "the relative performance of stocks versus bonds offers significant insight into market participants' risk preferences and flight-to-safety behavior."
Commodity Ratio (Oil/Gold)
Baur & McDermott (2010) demonstrated that "gold often functions as a safe haven during market turbulence, while oil typically performs better during risk-on environments, making their ratio an effective risk sentiment indicator."
Standardization Process
Each component undergoes z-score normalization to enable cross-asset comparisons, following the statistical approach advocated by Burdekin & Siklos (2012). The z-score transformation standardizes each variable by subtracting its mean and dividing by its standard deviation: Z = (X - μ) / σ
This approach allows for meaningful aggregation of different market signals regardless of their native scales or volatility characteristics.
Signal Integration
The four standardized components are equally weighted and combined to form a composite score. This democratic weighting approach is supported by Rapach et al. (2010), who found that "simple averaging often outperforms more complex weighting schemes in financial applications due to estimation error in the optimization process."
The final index is scaled to a 0-100 range, with:
Values above 70 indicating "Risk-On" market conditions
Values below 30 indicating "Risk-Off" market conditions
Values between 30-70 representing neutral risk sentiment
Limitations and Differences from Original Implementation
Proprietary Components
The original Goldman Sachs indicator incorporates additional proprietary elements not publicly disclosed. As Goldman Sachs Global Investment Research (2019) notes, "our comprehensive risk appetite framework incorporates proprietary positioning data and internal liquidity metrics that enhance predictive capability."
Technical Limitations
Pine Script v6 imposes certain constraints that prevent full replication:
Structural Limitations: Functions like plot, hline, and bgcolor must be defined in the global scope rather than conditionally, requiring workarounds for dynamic visualization.
Statistical Processing: Advanced statistical methods used in the original model, such as Kalman filtering or regime-switching models described by Ang & Timmermann (2012), cannot be fully implemented within Pine Script's constraints.
Data Availability: As noted by Kilian & Park (2009), "the quality and frequency of market data significantly impacts the effectiveness of sentiment indicators." Our implementation relies on publicly available data sources that may differ from Goldman Sachs' institutional data feeds.
Empirical Performance
While a formal backtest comparison with the original GSRAI is beyond the scope of this implementation, research by Froot & Ramadorai (2005) suggests that "publicly accessible proxies of proprietary sentiment indicators can capture a significant portion of their predictive power, particularly during major market turning points."
References
Ang, A., & Bekaert, G. (2002). "International Asset Allocation with Regime Shifts." Review of Financial Studies, 15(4), 1137-1187.
Ang, A., & Timmermann, A. (2012). "Regime Changes and Financial Markets." Annual Review of Financial Economics, 4(1), 313-337.
Baker, M., & Wurgler, J. (2006). "Investor Sentiment and the Cross-Section of Stock Returns." Journal of Finance, 61(4), 1645-1680.
Baur, D. G., & McDermott, T. K. (2010). "Is Gold a Safe Haven? International Evidence." Journal of Banking & Finance, 34(8), 1886-1898.
Burdekin, R. C., & Siklos, P. L. (2012). "Enter the Dragon: Interactions between Chinese, US and Asia-Pacific Equity Markets, 1995-2010." Pacific-Basin Finance Journal, 20(3), 521-541.
Connolly, R., Stivers, C., & Sun, L. (2005). "Stock Market Uncertainty and the Stock-Bond Return Relation." Journal of Financial and Quantitative Analysis, 40(1), 161-194.
Duca, M. L., Nicoletti, G., & Martinez, A. V. (2016). "Global Corporate Bond Issuance: What Role for US Quantitative Easing?" Journal of International Money and Finance, 60, 114-150.
Froot, K. A., & Ramadorai, T. (2005). "Currency Returns, Intrinsic Value, and Institutional-Investor Flows." Journal of Finance, 60(3), 1535-1566.
Goldman Sachs Global Investment Research (2019). "Risk Appetite Framework: A Practitioner's Guide."
Kilian, L., & Park, C. (2009). "The Impact of Oil Price Shocks on the U.S. Stock Market." International Economic Review, 50(4), 1267-1287.
Mosley, L., & Singer, D. A. (2008). "Taking Stock Seriously: Equity Market Performance, Government Policy, and Financial Globalization." International Studies Quarterly, 52(2), 405-425.
Oppenheimer, P. (2007). "A Framework for Financial Market Risk Appetite." Goldman Sachs Global Economics Paper.
Rapach, D. E., Strauss, J. K., & Zhou, G. (2010). "Out-of-Sample Equity Premium Prediction: Combination Forecasts and Links to the Real Economy." Review of Financial Studies, 23(2), 821-862.
Normal Distribution CurveThis Normal Distribution Curve is designed to overlay a simple normal distribution curve on top of any TradingView indicator. This curve represents a probability distribution for a given dataset and can be used to gain insights into the likelihood of various data levels occurring within a specified range, providing traders and investors with a clear visualization of the distribution of values within a specific dataset. With the only inputs being the variable source and plot colour, I think this is by far the simplest and most intuitive iteration of any statistical analysis based indicator I've seen here!
Traders can quickly assess how data clusters around the mean in a bell curve and easily see the percentile frequency of the data; or perhaps with both and upper and lower peaks identify likely periods of upcoming volatility or mean reversion. Facilitating the identification of outliers was my main purpose when creating this tool, I believed fixed values for upper/lower bounds within most indicators are too static and do not dynamically fit the vastly different movements of all assets and timeframes - and being able to easily understand the spread of information simplifies the process of identifying key regions to take action.
The curve's tails, representing the extreme percentiles, can help identify outliers and potential areas of price reversal or trend acceleration. For example using the RSI which typically has static levels of 70 and 30, which will be breached considerably more on a less liquid or more volatile asset and therefore reduce the actionable effectiveness of the indicator, likewise for an asset with little to no directional volatility failing to ever reach this overbought/oversold areas. It makes considerably more sense to look for the top/bottom 5% or 10% levels of outlying data which are automatically calculated with this indicator, and may be a noticeable distance from the 70 and 30 values, as regions to be observing for your investing.
This normal distribution curve employs percentile linear interpolation to calculate the distribution. This interpolation technique considers the nearest data points and calculates the price values between them. This process ensures a smooth curve that accurately represents the probability distribution, even for percentiles not directly present in the original dataset; and applicable to any asset regardless of timeframe. The lookback period is set to a value of 5000 which should ensure ample data is taken into calculation and consideration without surpassing any TradingView constraints and limitations, for datasets smaller than this the indicator will adjust the length to just include all data. The labels providing the percentile and average levels can also be removed in the style tab if preferred.
Additionally, as an unplanned benefit is its applicability to the underlying price data as well as any derived indicators. Turning it into something comparable to a volume profile indicator but based on the time an assets price was within a specific range as opposed to the volume. This can therefore be used as a tool for identifying potential support and resistance zones, as well as areas that mark market inefficiencies as price rapidly accelerated through. This may then give a cleaner outlook as it eliminates the potential drawbacks of volume based profiles that maybe don't collate all exchange data or are misrepresented due to large unforeseen increases/decreases underlying capital inflows/outflows.
Thanks to @ALifeToMake, @Bjorgum, vgladkov on stackoverflow (and possibly some chatGPT!) for all the assistance in bringing this indicator to life. I really hope every user can find some use from this and help bring a unique and data driven perspective to their decision making. And make sure to please share any original implementaions of this tool too! If you've managed to apply this to the average price change once you've entered your position to better manage your trade management, or maybe overlaying on an implied volatility indicator to identify potential options arbitrage opportunities; let me know! And of course if anyone has any issues, questions, queries or requests please feel free to reach out! Thanks and enjoy.
Ichi-Price WaveWelcome to the Ichi-Price Wave. This indicator is designed for day trading options contracts for any ticker, using a number of indicators — Ichimoku Cloud, Volume-Weighted Average Price, Stochastic Relative Strength Index, Exponential Moving Average (13/48) — and calculating how they interact with each other to provide entry and exit signals for both Calls and Puts on normal days. ****Read the Important Information section before opening any positions based on this indicator. (Also *NFA)
The general concept is that you, the trader, are a Surfer 🏄🏾 who rides the best waves in deep water until it gets dangerous.
Emoji storyline: The 🏄🏾 emoji (Call or Put, depending on the color of its Green or Red label, respectively) indicates an upcoming *potential* entry that, for a number of reasons, may be disregarded. (See: Important Information section below). And just as there are no certainties in the stock market itself, the tiered exit signals are ranked by low 🐬, medium 🦈 and high risk 🦑 tolerance. (In other words, it's relatively safe to surf with dolphins around, but there's the off chance they even strike trainers and become aggressive. It's more dangerous to swim with sharks. And on the unlikely, rare occasion you see a literal, giant, mythical, ship destroying Kraken 😬 ... you definitely need to get out of the water.
Surfing for as long as possible reaps the greatest rewards — but risk/reward are to be considered for entries and exits. Exiting every time you see a 🐬 (E1) should secure profits nearly 100% of the time, but they'll be very minimal. Whereas surfing til you reach a Kraken 🦑 (which will not even appear on most Price Wave cycles) would reap the most rewards. (NFA: I recommend considering sharks 🦈 as an exit point for the majority of positions, and perhaps only keeping a few runners open with the hopes of finding that shiny Kraken. (On the non-Emoji chart, the low, medium and high risk exits are named E1, E2 and E3, respectively. Got to the indicator's Settings > Inputs > then toggle EMOJIs ON/OFF)
Boring stuff: The entry 🏄🏾 signals are triggered by multiple conditions that must be all true. For Call entries, one of the necessary conditions is that the RSI's K must be maximum 10 (this can be changed in default). This, along with another condition where current price must be below the VWAP Lower Bound 1, serves as a great reference point showing the stock price is currently uncomfortable where it is and may likely soon snap back closer to the VWAP, perhaps even to the other side due to a pendulum effect.
Important information
Relying on those two factors for setting entry and exit points are great for normal days. (Normal, as in the ticker price bounces within a channel (e.g., ≤3% + or -) that's trending slightly bullish or bearish depending on greater market trend). But there are abnormal days where news catalysts (e.g., CPI data, CEO scandals, unexpected company data release, etc.) trigger FOMO and FUD, ultimately rendering the logic behind most indicators non applicable (e.g., RSI's "buy when oversold"). On the chart, this indicator accounts for this with two measures:
One, you should only "Surf" in the water. That is, there are two bands — Shallow and Deep Water. Any "Surf" emojis where price action is outside of the water should be ignored**. Two, there are additional EMOJIs that show you "Bearish trend" ⛈ and "Bullish trend ☀️. (Story time again: You obviously shouldn't surf in thunder and lightning. But also, surfing in the blistering sun with no clouds in the sky during a heatwave is also dangerous to your health.)
You can use these two measures to disregard the "surfers" suggesting you join them in opening a position in the suggested direction. And surfers followed by Cloud EMOJIs — 🌤️ (Put) or 🌧️ (Call) — can be used as "perfect entry" points. (The clouds represent weather being less extreme and better for surfing).
(**While these should mostly be ignored, these have not been muted because there is the possibility of a very strong turn around if you happen to catch the last one (which is not ideal for risk-averse traders). Use other indicators, such as the MACD and trend lines, to find potential bottoms (or tops) as price action plunges (or soars) due to abnormal news circumstances.)
Entry and exit buffers
At the beginning of each day, most indicators usually are not immediately calibrated correctly due to premarket trading and open market (at least to the degree that the day's sentiment can be best read from them due to the amount of volatility). What I recommend when using this indicator is disregarding signals during the first 15 minutes (or possibly 30 minutes) of market open to get the best results. And also, considering this indicator is meant for day trading (i.e., not holding positions overnight), disregarding ENTRY signals for the last 45 minutes of the trading day could give yourself enough buffer on the back end for exiting comfortably.
RSI entry
Preparing for an entry when you see a surfer is recommended, but actually opening the position when you see a 🌤️ (Put) or 🌧️ (Call) would yield best results and avoid misfires — particularly when those two cloud EMOJIs are signaled when the RSI is overbought and K is at least 95 (Puts), or oversold and K at maximum 5 (Calls). (Story time logic: The cloud eclipsing the Sun means it's cooling off and better for surfing. And the rain cloud no longer having lightning means the "bearish" storm is possibly soon over).
Delta and the Greeks
You should experiment yourself, but keep in mind that this is for capitalizing off of a day's minor price swings (≤3% + or -). Entering a same day expiry contract that's deep OTM is not going to work with this indicator (even if you enter at a surfer 🏄🏾 and exit at a Kraken 🦑) because the price wave from one end to the other won't be enough to compensate for the other Greeks working against you. Use another indicator (or insider knowledge ... Just kidding, that's illegal, don't do that) if you want to buy those kind of contracts.
I personally purchase contracts w/ minimum 80% Implied Volatility and somewhere between 20-40 Delta. Having a nice range for yourself with these factors, depending also on the size of your own portfolio and the risk tolerance you have, will determine how much you're able to capitalize off successful entry and exits.
Tips
• I set stop losses 5-10% depending on the ticker. (e.g., $TSLA's volatility may require SL closer to 10% whereas using it on $SPY, a 5% could suffice). This is in addition to ignoring entry signals that don't meet the aforementioned two requirements (i.e., it's risky to Surf in shallow water, and you shouldn't try to Surf at all outside of the water, ref. Band 2 and outside of Band 2). Remember, this is the stock market — not the casino. We rely on strategy and risk management — not hope.
• It's recommended you use time intervals ≤ 5 min. (I use 1 minute and 5 min)
• Liquidity . Using these signals on a ticker with low liquidity (particularly if you enter on the Ask side), can reduce your profits to 0% or even to a loss even if you have a perfect entry and exit. I always point to SPY as the optimal bid-ask spread, but keep that in mind.
What's with the name "Ichi-Price Wave"?
The "Ichi" gives credit to Japanese journalist Goichi Hosoda, whose indicator I used in conjunction with the 13/48 Exponential Moving Averages to create some of the exit signal conditions (e.g., E2🦈). That E2 condition is: Signal the first time the price intersects the Ichimoku conversion line *after* it has entered the VWAP UB/LB channel on one end and has exited on the opposite end). And it's named "Price Wave" because it's a literal price wave, which is where the fun surf narrative comes in. Also, "Price" doubles as me naming it after myself (in a less pretentious way). It's actually convenient that my last name is literally Price. Almost as if I was born for this. Nonetheless, this indicator is far more accurate in spotting directional changes than the free 13/48 cross, which oddly enough, influencers are charging for access. It's free, but the code is protected, for now at least.
Try it out on any ticker and look at how accurately it catches the tops and bottoms (keeping in mind to ignore misfires according to the two measures and also setting ~5-10% stop losses). And of course, use this in conjunction with other indicators. Ignoring all of my other emojis and simply setting surfer 🏄🏾 alerts could serve as additional confirmations for your personal strategy. Or you could simply enter at a surfer 🏄🏾 and exit when it reaches VWAP (or at least increase your Stop Loss to sell at break even if it doesn't reach). That strategy is the most conservative and would secure consistent gains). AND AGAIN, use your stop losses. Either it makes a move or it doesn't. Simply re-enter at a better point if necessary.
VWAP Implied Volatility BandsThis script takes the built in VWAP function and creates bands using various Volatility Indexes from the CBOE. The script plots the bands at desired multiples, as well as the closing value of the prior day's first set of bands. Users can choose from the following:
VIX(ES), VXN(NQ), RVX(RTY), OVX(CL), GVX(GC), SIV(ZS), CIV(ZC), TYVIX(ZN), EUVIX(EURUSD), BPVIX(GBPUSD)
Upon selecting the desired volatility index, users must change the multiplier to fit the underlying product since the indexes are all calculated differently.
The goal with this script was to use market generated information (IV) to highlight potential trade locations.
Chobotaru Indicator V1Now can be used by everyone.
Chobotaru Indicator has two functions:
1. Probability cloud, giving the probability of stock or future to move to a certain price.
2. Help traders understand where to take profit and where to put a stop-loss.
You don’t need knowledge about options trading, this indicator is for all traders/investors.
What does the indicator do?
The indicator is based on the partial differential equations from the mathematical model of options, the Black-Scholes model. Using these equations and market parameters the indicator shows on the chart the probability that the stock/future will touch a certain price until a specific date.
How the indicator does it?
The algorithm solves the partial differential equations using the following values:
Instrument price - The current price of the stock or futures contract
The interest rate – default zero – can be found by searching in google: “U.S. Department of the treasury daily yield curve rates”, Use the 3-month value. This value has a low impact on the model so you only need to update it when there is a major change in the percentile. (Example, in January 2021 the 3 months “risk-free rate” is 0.08, you can enter 0 in the indicator.
Days to expire (minus trading holidays) – You need to choose an option and take from it the other values that are needed. We recommend taking options that close to 30 days, but it is the user choice.
Example: On the 22 of January 2021, PLTR has an option that has 35 days left. The option will expire on the 26 of February 2021, if there are trading holidays like in this case, the user needs to subtract them, on the 15 of February we have Washington's Birthday, the input is 35-1=34.
Implied volatility - Annualized asset price volatility , specific as a positive decimal number. IV 10% => input 0.1, you can find it in the option chain, if you don’t know what it is, you can ask your broker where you can find it on your trading platform. For example, the IV of PLTR on the 22 of January 2021 is 120.67% the input is 1.2067
Date – Entering the date of entry.
How the indicator helps traders and how to use it?
After you enter the inputs correctly, you will see colorful lines, each line representing the probability for the price to touch there in the current market conditions until a specific date.
To see what percentage each color represents in the indicator press “style”. For example, red lines are a 50% chance for the price to touch there in the chosen period.
It also helps the trader to see what range the stock is expected to move and what range is not probable in this period (according to the options prices).
As you can see, the probability cloud is expanding. This is because as time passes, the probabilities of reaching far away prices are increasing.
Note: this indicator may not work on IPO
Chobotaru IndicatorChobotaru Indicator has two functions:
1. Probability cloud, giving the probability of stock or future to move to a certain price.
2. Help traders understand where to take profit and where to put a stop-loss.
You don’t need knowledge about options trading, this indicator is for all traders/investors.
What does the indicator do?
The indicator is based on the partial differential equations from the mathematical model of options, the Black-Scholes model. Using these equations and market parameters the indicator shows on the chart the probability that the stock/future will touch a certain price until a specific date.
How the indicator does it?
The algorithm solves the partial differential equations using the following values:
Instrument price - The current price of the stock or futures contract
The interest rate – default zero – can be found by searching in google: “U.S. Department of the treasury daily yield curve rates”, Use the 3-month value. This value has a low impact on the model so you only need to update it when there is a major change in the percentile. (Example, in January 2021 the 3 months “risk-free rate” is 0.08, you can enter 0 in the indicator.
Days to expire (minus trading holidays) – You need to choose an option and take from it the other values that are needed. We recommend taking options that close to 30 days, but it is the user choice.
Example: On the 22 of January 2021, PLTR has an option that has 35 days left. The option will expire on the 26 of February 2021, if there are trading holidays like in this case, the user needs to subtract them, on the 15 of February we have Washington's Birthday, the input is 35-1=34.
Implied volatility - Annualized asset price volatility, specific as a positive decimal number. IV 10% => input 0.1, you can find it in the option chain, if you don’t know what it is, you can ask your broker where you can find it on your trading platform. For example, the IV of PLTR on the 22 of January 2021 is 120.67% the input is 1.2067
Date – Entering the date of entry.
How the indicator helps traders and how to use it?
After you enter the inputs correctly, you will see colorful lines, each line representing the probability for the price to touch there in the current market conditions until a specific date.
To see what percentage each color represents in the indicator press “style”. For example, red lines are a 50% chance for the price to touch there in the chosen period.
It also helps the trader to see what range the stock is expected to move and what range is not probable in this period (according to the options prices).
As you can see, the probability cloud is expanding. This is because as time passes, the probabilities of reaching far away prices are increasing.
How to access the indicator?
Use the link below to obtain access to the indicator
Note: this indicator may not work on IPO
VIX MTF MomentumSweet little momentum gadget to track the VIX Index.
What is the VIX?
The CBOE S&P 500 Volatility Index (VIX) is known as the 'Fear Index' which can measure how worried traders are that the S&P 500 might suddenly drop within the next 30 days.
When the VIX starts moving higher, it is telling you that traders are getting nervous. When the VIX starts moving lower, it is telling you that traders are gaining confidence.
VIX calculation?
The Chicago Board of Options Exchange Market Volatility Index (VIX) is a measure of implied volatility (Of the S&P 500 securities options), based on the prices of a basket of S&P 500 Index options with 30 days to expiration.
How to use:
If VIX Momentum is above 0 (RED) traders are getting nervous.
If VIX Momentum is below 0 (GREEN) traders are gaining confidence.
Follow to get updates and new scripts: www.tradingview.com
Risk RangeThis indicator creates risk ranges using implied volatility (VIX) or historical volatility, skewness ( Cboe SKEW or estimate ) and kurtosis.
Realized Variables for Options ComparisonThese variables can be used in comparison with the implied volatility of options.
Variables:
Realized Volatility
mathematical notation lowercase 'sigma'
Realized Variance
mathematical notation lowercase 'sigma' squared
Realized Beta
mathematical notation lowercase 'beta'
Timeframes:
Yearly = 250 or 365
Quarterly = 50 or 90
Monthly = 20 or 30
Important Note:
Options Contract Expiry = barmerge.lookahead_on
"Merge strategy for the requested data position. Requested barset is merged with current barset in the order of sorting bars by their opening time. This merge strategy can lead to undesirable effect of getting data from "future" on calculation on history. This is unacceptable in backtesting strategies, but can be useful in indicators."
[ All other timeframes barmerge.lookahead is disabled.
IVR = implied volatility rank for volatility productsuse this indicator on VOLATILITY products such as OVX, VIX, GVX .... (search for "volatility")
🧠 STWP Options Strategy Dashboard (Strangle)________________________________________
🧠 STWP Options Strategy Dashboard (Long/Short Strangle)
Author: simpletradewithpatience
Markets: NSE (India)
Best timeframe: 1-second chart
Built with: Pine Script v5
________________________________________
📌 Overview
A real-time options strategy dashboard tailored for NSE Strangles:
✅ Long Strangle → Buy OTM CE + Buy OTM PE
✅ Short Strangle → Sell OTM CE + Sell OTM PE
This tool offers a tick-by-tick visual dashboard to monitor:
Live premiums, PnL, breakeven levels, expiry decay, and Greeks.
It is designed **for manual use only** — no trade automation.
Ideal for strategy tracking, education, and decision support.
________________________________________
📌 Key Features
✅ Long & Short Strangle support
✅ Real-time tracking of CE & PE legs (LTPs, PnL, Premium)
✅ Max Loss / Profit calculator
✅ Breakeven range calculator
✅ Risk:Reward verdict (dynamic logic)
✅ Smart Exit logic with trade-specific warnings
✅ Reversal Exit logic based on spot compression
✅ Optional manual Greeks input (Delta, Gamma, Theta, IV)
✅ Greek-based bias: Bullish / Bearish / Neutral
✅ Days to Expiry (DTE) calculator
✅ Clean dashboard UI (emoji-labeled)
✅ Built for Indian NSE Options
✅ Designed to run on **1-second chart only**
________________________________________
📌 Option Symbol Inputs (LTP Tracking)
✅ Call Symbol: OTM CE (above spot)
✅ Put Symbol: OTM PE (below spot)
🎯 Symbol Tips: Use NSE format like `NSE:RELIANCE25JUL3050CE` and `PE`
⚠️ Valid option symbols are critical for accurate PnL tracking
________________________________________
📌 Strategy Parameters
- Call & Put Strike Prices
- Buy/Sell Premiums for both legs
- Lot Size & Number of Lots
- Loss Bearable Amount (₹)
- Expiry Date & Time (used for DTE tracking)
________________________________________
📌 Smart Exit Logic
🧠 A dynamic assistant that checks:
✅ Profit Target Hit
❌ Loss Threshold Breach
⏳ Expiry nearing with no breakout
🟡 Partial Profit Zone
📉 Guides the trader to avoid emotional decisions.
All messages are suggestive only — no trade recommendations.
________________________________________
📌 Reversal Exit Logic (Strangle Specific)
🔁 Detects if spot is trapped between the call/put strikes
➡️ If no breakout from the average strike zone, exit is suggested
⚠️ Helps prevent theta decay trap in Long Strangles
________________________________________
📌 Greeks (Optional Input)
🔹 Manual input for Delta, Gamma, Theta, and IV for both legs
🔍 Dashboard shows:
- Net Delta: Directional Bias
- Net Gamma: Volatility Risk
- Net Theta: Time Decay Risk
- Avg IV: Vol Crush or Low IV Warning
- Verdict: 🟢 Strong / 🟡 Moderate / ❌ Risky
________________________________________
📌 Dashboard Display
📈 Strategy Type: Long or Short Strangle
💹 Call & Put Premiums (Entry vs LTP)
📊 Total Net Premium
📉 Real-time PnL
📐 Breakeven Range (Lower & Upper)
🧠 Smart Exit verdict
🔁 Reversal Exit guidance
📆 Days to Expiry (DTE)
📊 R:R Ratio & Quality Verdict
📐 Greeks Summary + Risk Flags (if enabled)
________________________________________
⚠️ Important Notes
✅ Built for NSE Options only
✅ Designed for Long/Short Strangle strategies
✅ Use on 1-second chart only
❌ Will not function correctly on higher timeframes
✅ This is a manual dashboard — **no orders or automation**
✅ For educational, research, and tracking use only
❌ Not financial advice or a trading recommendation
________________________________________
💬 How to Use This Dashboard
1️⃣ Choose your strategy: Long or Short Strangle
2️⃣ Enter valid CE & PE symbols (OTM strikes)
3️⃣ Fill in strike prices and premiums (Buy/Sell)
4️⃣ Optionally enter Greeks (Delta, Gamma, etc.)
5️⃣ Set your expiry date
6️⃣ Monitor PnL, risk zones, exit suggestions
7️⃣ Use alerts (if enabled) for major thresholds
________________________________________
🤝 Final Note
This tool was built with patience and care by simpletradewithpatience to help fellow options traders trade more objectively, systematically, and confidently.
Feel free to share feedback on Tradingview.
Happy Trading! 📈
Stay disciplined. Stay smart.
________________________________________
🔠 Glossary
PnL – Profit & Loss
LTP – Last Traded Price
IV – Implied Volatility
DTE – Days to Expiry
ROI – Return on Investment
R:R – Risk to Reward Ratio
CE / PE – Call / Put Option
SEBI – Securities and Exchange Board of India
________________________________________
⚠️ Disclaimer
This script is for educational and research purposes only.
I am not a SEBI-registered advisor.
No buy or sell recommendations are made.
Trading options involves significant risk.
Use proper risk management and always consult a licensed advisor if in doubt.
The author is not responsible for any financial losses incurred.
By using this tool, you agree to these terms.
________________________________________
Black ArrowExpected Move Levels - Closer Prices
This script calculates and displays the expected move based on Implied Volatility (IV) and Days to Expiration (DTE). It helps traders visualize potential price movement ranges over a defined period using historical close price.
🔹 Key Features:
Customizable IV and DTE inputs
Displays 2 green levels above price and 2 red levels below, representing half and full expected move
Mid-lines between base price and first green/red level
Each level is labeled with its price value
Lines are drawn short and don't extend through the full chart for clarity
📘 Formula:
Expected Move = Price × IV × √(DTE / 365)
Use this tool to estimate market volatility zones and potential price targets without relying on traditional indicators.
5EMA BollingerBand Nifty Stock Scanner
What ?
We all heard about (well: over-heard) 5-EMA strategy. Which falls into the broader category of mean reversal type of trading setup.
What is mean reversal?
Price (or any time series, in fact) tries to follow a mean . Whenever price diverges from the mean it tries to meet it back.
It is empirically observed by some traders (I honestly don't know who first time observed it) that in Indian context specially, 5 Exponential Moving Average (5-EMA) works pretty good as that mean.
So whenever price moves away from that 5-EMA, it ultimately comes back and attain total nirvana :) Means: if price moved way higher than the 5EMA without touching it, then price will correct to meet it's 5-EMA and if price moved way lower, it will be uplifted to meet it's 5-EMA. Funny - but it works !
Now there are already enough social media coverage on this 5-EMA strategy/setup. Even TradingView has some excellent work done on these setups. Kudos to all those great souls.
So when we came to know about this, we were thinking what we should do for the community. Because it is well cover topic (specially in Indian context). Also, there are public indicators.
Then we thought why not come up with a scanner which will scan all the Nifty-50 constituent stocks and find out on the fly, real-time which all stocks are matching this 5-EMA setup and causing a Buy/Sell trade recommendation.
Hence here we are with the first version of our first scanner on the 5EMA setup (well it has some more masala than merely a 5-EMA setup).
Why?
Parts of why is already covered up.
Now instead of blindly following 5-EMA setup, we added the Bollinger band as well. Again: it's also not new. There are enough coverage in social media about the 5-EMA+BB strategy/setup. We mercilessly borrowed from all of these.
Suppose you have an indicator.
Now you apply the indicator in your chart. And then you need to (rock) and roll through your watchlist of Nifty-50 stocks (note: TradingView has no default watchlist of Nifty-50 stock by default - you have to create one custom watchlist to list all manually) to find out which all are matching the setup, need to take a note about the trade recomendations (entry, SL, target) and other stuffs like VWAP, Volume, volatility (Bollinger Band Width).
Not any more.
This scanner will track all the Nifty-50 stocks (technically: 40 stocks other than Banking stocks) and provide which one to Buy or Sell (if any), what's the entry, SL, target, where is the VWAP of the day, what's the picture in volume (high, low, rising, falling) and the implied volatility (using Bolling band width). Also it has a naive alerting mechanism as well.
In fact the code is there to monitor the (Future) OI also and all the OI drama (OI vs price and all the 4 stuffs like long build up, long unwinding, short covering, short buildup). But unfortunately, due to some limitations of the TradingView (that one can not monitor more than 40 `ta.security` call) we have to comment out the code. If you wish you can monitor only 20 stocks and enable the OI monitoring also (20 for stocks + 20 for their OI monitoring .. total 40 `ta.security` call).
How?
To know the divergence from 5-EMA we just check if the high of the candle (on closing) is below the 5-EMA. Then we check if the closing is inside the Bollinger Band (BB). That's a Buy signal. SL: low of the candle, T: middle and higher BB.
Just opposite for selling. 5-EMA low should be above 5-EMA and closing should be inside BB (lesser than BB higher level). That's a Sell signal. SL: high of the candle, T: middle and lower BB.
Along with we compare the current bar's volume with the last-20 bar VWMA (volume weighted moving average) to determine if the volume is high or low.
Present bar's volume is compared with the previous bar's volume to know if it's rising or falling.
VWAP is also determined using `ta.vwap` built-in support of TradingView.
The Bolling Band width is also notified, along with whether it is rising or falling (comparing with previous candle).
Simple, but effective.
Customization
As usual the EMA setup (5 default), the BB setup (20 SMA with 1.5 standard deviation), we provided option wherther to include or exclude BB role in the 5-EMA setup (as we found out there are two schools of thought .. some people use BB some don't. Lets make all happy :))
We also provide options to choose other symbols using Settings if they wish so. We have the default 40 non banking Nifty stocks (why non-banking? - Bank Nifty is in ATH :) .. enough :)). But if user wishes can monitor others too (provided the symbol is there in TradingView).
Although we strongly recommend the timeframe as 30 minutes , you can choose what's fit you most.
The output of the scanner is a table. By default the table is placed in the right-bottom (as we are most comfortable with that). However you can change per your wish. We have the option to choose that.
What is unique in it ?
This is more of an indicator. This is a scanner (of Nifty-50 stocks). So you can apply (our recommendation is in 30m timeframe) it to any chart (does not matter which chart it is) and it will show every 30 mins (which is also configurable) which all stocks (along with trade levels) to Buy and Sell according to the setup.
It will ease your trading activity.
You can concentrate only on the execution, the filtering you can leave it to this one.
Limitations
There is a build in limitation of the TradingView platform is that one can call only upto 40 securities API. Not beyond that. So naturally we are constraint by that. Otherwise we could monitor 190 Nifty F&O stocks itself.
30m is the recommended timeframe. In very lower (say 5m) this script tends to go out of heap (out of memory). Please note that also.
How to trade using this?
Put any chart in 30m (recommended) timeframe.
Apply this screener from Indicators (shortcut to launch indicators is just type / in your keyboard).
This will provide the Buy (shown in green color) or Sell (shown in red color) recommendations in a table, at every 30m candle closing.
Note the volume and BB width as well.
Wait for at least 2 5-minutes candles to close above/below the recommended level .
Take the trade with the SL and target mentioned.
Mentions
@QuantNomad. The whole implementation concept we mercilessly borrowed from him, even some of his code snippet we took it (after asking him through one of his videos comment section and seeking explicit permission which he readily granted within an hour). Thank You sir @QuantNomad. Indebted to you.
Monika (Rawat) ji: for reviewing, correcting, providing real time examples during live market hours, often compromising her own trading activities, about the effectiveness and usefulness of this setup. Thank You madam ji. Indebted to you.
There are innumerable contents in social media about this. Don't even know whom all we checked. Thanks to all of them.
Happy Trading (in stocks - isn't enough of Indices already?)
Disclaimer
This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
Options Price CalculatorIn the team, we continue to explore and expand the boundaries of TradingView.
For now, there is not much an options trader can do with options in TradingView.
We wanted to change that and created a simple option pricer.
You can set up in parameters a set of strikes, implied volatility, and days to expiry.
The indicators will take a risk-free rate from US01Y and the underlying price from your current chart.
It will compute prices and greeks for both put and call options.
Thanks to @MUQWISHI for helping code it.
Disclaimer
Please remember that past performance may not indicate future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
VIX Rule of 16There’s an interesting aspect of VIX that has to do with the number 16. (approximately the square root of the number of trading days in a year).
In any statistical model, 68.2% of price movement falls within one standard deviation (1 SD ). The rest falls into the “tails” outside of 1 SD .
When you divide any implied volatility (IV) reading (such as VIX ) by 16, the annualized number becomes a daily number
The essence of the “rule of 16.” Once you get it, you can do all sorts of tricks with it.
If the VIX is trading at 16, then one-third of the time, the market expects the S&P 500 Index (SPX) to trade up or down by more than 1% (because 16/16=1). A VIX at 32 suggests a move up or down of more than 2% a third of the time, and so on.
• VIX of 16 – 1/3 of the time the SPX will have a daily change of at least 1%
• VIX of 32 – 1/3 of the time the SPX will have a daily change of at least 2%
• VIX of 48 – 1/3 of the time the SPX will have a daily change of at least 3%
MS VIX Bull ReversalThis script measures the rebound of the implied volatility of the S&P 500 index options from an excessive panic zone. The IV starts a reversion to the mean as soon as profit taking from the hedge begins. The assumption behind it: this rebound indicates at least the beginning of a countermovement, in uptrends the end of the correction and the trend continuation.
Bitcoin IV C/FIllustrating Cap-Floor bands based on statistical calculations using the implied volatility of Bitcoin.
Calculation criteria can be chosen in range 1day-365days.
Daily Deviations (Self Input Version)
Plots the standard deviation resistance/support levels.
Input the previous settlement price and the implied volatility.
credit to u/UberBotMan and u/Living_Granger for the idea and formulas
(preview example is using settlement of 2420 and IV of 11)
🧠 Options Strategy Dashboard (Straddle)________________________________________
🧠 STWP Options Strategy Dashboard (Long/Short Straddle)
Author: simpletradewithpatience
Markets: NSE (India)
Best timeframe: 1-second chart
Built with: Pine Script v5
________________________________________
📌 Overview
A real-time options strategy dashboard designed for NSE Straddles:
✅ Long Straddle → Buy ATM CE + Buy ATM PE
✅ Short Straddle → Sell ATM CE + Sell ATM PE
This tool provides a visual, tick-by-tick dashboard for monitoring:
Live premiums, real-time PnL, ROI, Greeks, and risk conditions — all in one screen.
It’s fully manual and built for educational & tracking purposes only — not for automation.
________________________________________
📌 Key Features
✅ Track Long & Short Straddles
✅ Live LTP tracking via dual symbol inputs
✅ Real-time PnL, breakeven, max profit/loss
✅ ROI & Risk:Reward calculation
✅ Smart Exit logic with context-based alerts
✅ Invalidation logic via Reversal Range breach
✅ Manual input of Greeks (Delta, Gamma, Theta, IV%)
✅ Greek-based warnings: Gamma Risk, IV Crush, Theta Decay
✅ Days to Expiry (DTE) tracking
✅ Fully customizable alert system
✅ Clean emoji-labelled dashboard UI
✅ Built for Indian NSE Options
✅ Requires 1-second chart for correct functioning
________________________________________
📌 Option Symbol Inputs (LTP Tracking)
✅ Call Symbol: ATM CE (same strike as Put)
✅ Put Symbol: ATM PE (same strike as Call)
✅ Symbol Tips: Use Tradingview dropdown to select NSE option symbols like NSE:RELIANCE25JUL3000CE and PE
⚠️ Providing valid option symbols is essential — all live data relies on them.
________________________________________
📌 Trade Setup Parameters
Spot Price at Entry
Strike Price (same for both legs)
Buy Price (for Long Straddle)
Sell Price (for Short Straddle)
Lot Size & Number of Lots
Loss Bearable Amount (₹) → Used by Smart Exit logic to trigger warnings
________________________________________
📌 Expiry Date Input
Expiry Year, Month, and Day
🎯 Used to calculate Days to Expiry (DTE) and enable:
⏱️ Expiry alerts like “Less than 2 Days”, “Theta Risk”, etc.
📉 Smart Exit logic dynamically adapts based on DTE
________________________________________
📌 Greeks (Optional)
🔹 Default: Leave Greeks empty
🔹 Optional: Input Delta, Gamma, Theta, IV for both Call & Put
🔍 Enables:
Net Delta, Gamma, Theta, IV
Greek-based alerts and visual verdict
🟢 Conservative 🟡 Moderate 🔴 Aggressive Risk
________________________________________
📌 Dashboard Display
📈 Strategy Type: Long or Short Straddle
💹 Entry Premiums & Live Net LTP
📊 Net Premium, Max Profit/Loss
📉 Real-time PnL (tick-level)
📐 Breakeven range
📊 ROI %, Risk:Reward & trade verdict
🚦 Smart Exit verdict: Hold, Exit Soon, or Book Loss
🔁 Reversal Range for invalidation
📆 Days to Expiry (DTE)
📐 Greek Data (if enabled) with Net & Avg values
⚠️ Greek Risk Verdict for managing directional exposure
________________________________________
📌 Alert System (Built-in Alerts)
🎯 Target Profit Hit
❌ Max Loss Reached
🛑 Loss Bearable Limit Breached
📍 Hold Signal
📉 Book Loss / Exit Soon
⏳ Expiry Nearing
⚠️ Reversal Breach (spot breaks outside expected range)
💥 High Gamma Risk (> ±0.05)
📉 High IV Alert (> 35%)
🚨 Combined Master Alert — if any key risk triggers
________________________________________
📌 Smart Exit System
⚙️ A dynamic, context-aware trade assistant
✅ Assesses price movement, expiry risk, and loss thresholds
✅ Provides real-time exit suggestions to prevent overholding
✅ Filters emotional decisions — encourages disciplined trading
________________________________________
📌 Reversal Exit Logic (For Straddles)
🔁 Detects directional invalidation
Reversal Range = ±35% of Total Premium around strike price
⚠️ If spot breaches this range, trade likely invalid — exit advised
📉 Works as directional filter for neutral strategies
________________________________________
⚠️ Important Notes
✅ Built for NSE Options – not suitable for other exchanges
✅ Designed only for Long/Short Straddles
✅ Use on 1-second chart only
❌ Will malfunction on higher timeframes
✅ For manual use only — no automation
✅ For educational and research use only
________________________________________
💬 How to Use This Dashboard
1️⃣ Select Strategy
Long Straddle (Buy Both Legs) or Short Straddle (Sell Both Legs)
2️⃣ Input Symbols
Use accurate NSE symbols for CE & PE
3️⃣ Enter Strike & Premiums
Same strike for both legs. Add Buy or Sell prices
4️⃣ (Optional) Enter Greeks
Add Delta, Gamma, Theta, IV for both legs
5️⃣ Set Expiry
Year, Month, Day — enables DTE alerts
6️⃣ Track Dashboard
Live PnL, Net Premium, ROI, Reversal Range, Smart Exit
7️⃣ Enable Alerts
Get push/email/sound notifications for PnL, expiry, and Greek risks
________________________________________
🤝 Final Note
This tool was built with patience and care by simpletradewithpatience to help fellow options traders trade more objectively, systematically, and confidently.
Feel free to share feedback on Tradingview.
Happy Trading! 📈
Stay disciplined. Stay smart.
________________________________________
🔠 Glossary
PnL – Profit & Loss
LTP – Last Traded Price
IV – Implied Volatility
DTE – Days to Expiry
ROI – Return on Investment
R:R – Risk to Reward Ratio
CE / PE – Call / Put Option
SEBI – Securities and Exchange Board of India
________________________________________
⚠️ Disclaimer
This script is for educational and research purposes only.
I am not a SEBI-registered advisor.
No buy or sell recommendations are made.
Trading options involves significant risk.
Use proper risk management and always consult a licensed advisor if in doubt.
The author is not responsible for any financial losses incurred.
By using this tool, you agree to these terms.
________________________________________
🧠 STWP Dashboard (Bull Call Spread / Bear Put Spread)________________________________________
🧠 STWP Options Strategy Dashboard (Bull Call Spread/ Bear Put Spread)
Author: @simpletradewithpatience
Markets: NSE (India)
Best timeframe: 1-second chart
Built with: Pine Script v5
________________________________________
📌 Overview
A real-time options strategy dashboard tailored for NSE traders, designed for two-leg spreads:
✅ Bull Call Spread → Buy Lower Strike CE, Sell Higher Strike CE
✅ Bear Put Spread → Buy Higher Strike PE, Sell Lower Strike PE
This tool gives you a real-time, color-coded visual interface with:
Entry premiums & breakeven levels
Live LTPs & PnL
ROI & Risk: Reward
Smart Exit logic
Alerts for expiry, Greeks, and PnL events
It’s fully manual, for educational and tracking use only — not for automated trading.
________________________________________
📌 Key Features
✅ Track Bull Call & Bear Put Spreads
✅ Live LTP tracking via symbol input
✅ Real-time PnL, breakeven, max profit/loss
✅ ROI & Risk:Reward calculation
✅ Smart Exit logic with trade verdicts
✅ Invalidation logic with Reversal Exit
✅ Manual input of Greeks (Delta, Gamma, Theta, IV%)
✅ Greek-based alerts for Gamma Risk, IV Crush, Theta Decay
✅ Days to Expiry (DTE) tracking
✅ Fully customizable alert system
✅ Clean, emoji-labelled dashboard UI
✅ Built for Indian NSE options only
✅ Requires 1-second chart for correct data
________________________________________
📌 Option Symbol Inputs (LTP Tracking)
✅ Long Leg Symbol (Buy): Lower strike CE (Bull Call) or higher strike PE (Bear Put)
✅ Short Leg Symbol (Sell): Higher strike CE (Bull Call) or lower strike PE (Bear Put)
✅ Symbol Tips: Use TradingView's dropdown to select NSE option symbols like NSE:RELIANCE25JUL3000CE
⚠️ Providing valid option symbols is crucial — it powers all live tracking and calculations.
________________________________________
📌 Trade Setup Parameters
Spot Price at Entry
Long & Short Strike Prices
Buy Price (Long Leg)
Sell Price (Short Leg)
Lot Size & Number of Lots
Loss Bearable Amount (₹) → Used by Smart Exit logic to issue early warnings
________________________________________
📌 Expiry Date Input
Expiry Year, Month, and Day
🎯 Used to calculate Days to Expiry (DTE) and enable:
⏱️ Expiry alerts like “Less than 2 Days”, “Theta Risk”, and more
📉 Smart Exit logic adjusts based on time decay
________________________________________
📌 Greeks (Optional)
🔹 Default Mode: Don’t Enter Greeks
🔹 Optional Mode: Enter Greeks for both legs (Delta, Gamma, Theta, IV%)
🔍 Enabling Greeks unlocks:
Net Delta, Gamma, Theta, IV
Greek-based warnings (e.g. Gamma Risk, Theta Risk)
A dashboard Greek Verdict:
🟢 Conservative 🟡 Moderate Risk 🔴 Aggressive Risk
________________________________________
📌 Dashboard Display
🎯 Strategy Type (Bull or Bear Spread)
📈 Entry Premiums & Live LTPs
💹 Breakeven, Max Profit/Loss, Net Premium
📊 ROI % & Risk:Reward (with verdict)
📉 Real-time PnL using tick-by-tick data
🚦 Smart Exit verdict: Hold, Exit Soon, or Book Profit
🔁 Reversal Exit Price (spread invalidation logic)
📆 Days to Expiry (DTE)
📐 Greek Data (if enabled) with Net & Average values
⚠️ Greek Risk Verdict for managing directional risk
________________________________________
📌 Alert System (Built-in Alerts)
🎯 Target Profit Hit
❌ Max Loss Reached
🛑 Loss Bearable Limit Breached
📍 Hold Signal
📉 Book Loss / Exit Soon
⏳ Expiry Nearing
⚠️ Spread Invalidation Alert (via Reversal Price breach)
💥 High Gamma Risk (if Gamma > ±0.05)
📉 High IV Alert (if IV > 35%)
🚨 Combined Master Alert – fires if any key condition is triggered
________________________________________
📌 Smart Exit System
⚙️ Context-aware, dynamic trade assistant
✅ Analyses real-time market, PnL, expiry risk, reversal risk
✅ Gives exit suggestions based on:
Time decay
Price invalidation
Breach of defined loss/profit thresholds
✅ Keeps you objective — no emotional exits
________________________________________
📌 Reversal Exit Logic
🔁 Detects directional failure in spread structure
Bull Call Spread: Invalidation = Spot falls 25% of net premium below long strike
Bear Put Spread: Invalidation = Spot rises 25% of net premium above short strike
📉 Alerts you to exit even before loss appears
🎯 Designed for directional traders using spread logic
💡 Acts as a breakdown or breakout filter
________________________________________
⚠️ Important Notes
✅ Built for NSE Options – not for global exchanges
✅ Only for Bull Call & Bear Put spreads
✅ Use on 1-second chart only
❌ Will not work properly on higher timeframes
✅ Manual tool only – doesn’t place trades
✅ For educational and research use only
________________________________________
💬 How to Use This Dashboard
Choose Your Strategy
Bull Call or Bear Put
Input Symbols & Strikes
Use Tradingview dropdown to select accurate NSE option symbols
Enter Buy/Sell Prices
Add premiums, lot size, no. of lots
(Optional) Enable Greeks
Add Delta, Gamma, Theta, IV for both legs
Set Expiry Date
Year, Month, Day — activates DTE & expiry alerts
Monitor Dashboard
Live PnL, Max P/L, ROI, R:R, Smart Exit, Reversal Levels
(Optional) Enable Alerts
Get notified for PnL events, expiry risk, Greek risk, spread failure
________________________________________
🤝 Final Note
This tool was built with patience and care by @simpletradewithpatience to help fellow options traders trade more objectively, systematically, and confidently.
Feel free to share feedback on Tradingview.
Happy Trading! 📈
Stay disciplined. Stay smart.
________________________________________
🔠 Glossary
PnL – Profit & Loss
LTP – Last Traded Price
IV – Implied Volatility
DTE – Days to Expiry
ROI – Return on Investment
R:R – Risk to Reward Ratio
CE / PE – Call / Put Option
SEBI – Securities and Exchange Board of India
________________________________________
⚠️ Disclaimer
This script is for educational and research purposes only.
I am not a SEBI-registered advisor.
No buy or sell recommendations are made.
Trading options involves significant risk.
Use proper risk management and always consult a licensed advisor if in doubt.
The author is not responsible for any financial losses incurred.
By using this tool, you agree to these terms.
________________________________________